import { BasicColumn, FormSchema } from '/@/components/Table';
// 表格字段
export const columns: BasicColumn[] = [
  {
    title: '用户名',
    dataIndex: 'buildingName',
  },
  {
    title: '房源标题',
    dataIndex: 'title',
  },
  {
    title: '评论内容',
    dataIndex: 'remark',
  },
  {
    title: '评论时间',
    dataIndex: 'createTime',
  },
  {
    title: '操作',
    dataIndex: 'action',
    slots: { customRender: 'action' },
    width: 60,
  },
];
// 表单
export const searchFormSchema: FormSchema[] = [
  {
    field: 'buildingName',
    label: '用户名',
    component: 'Input',
    colProps: { span: 8 },
    componentProps: {
      placeholder: '请输入',
    },
  },
  {
    field: 'remark',
    label: '评论内容',
    component: 'Input',
    colProps: { span: 8 },
    componentProps: {
      placeholder: '请输入',
    },
  },
];

// 表格数据
export const dataSource = [
  {
    id: 1,
    buildingName: 'LUCY',
    title: 'SKY YSKY SKY',
    createTime: '2021-5-20 13:20:30',
    remark: 'New67 Mott St, New67 Mott St,New67 Mott St',
  },
  {
    id: 2,
    buildingName: 'LUCY',
    title: 'SKY YSKY SKY',
    createTime: '2021-5-20 13:20:30',
    remark: 'New67 Mott St, New67 Mott St,New67 Mott St',
  },
];

export const getAccountList = () => {
  return dataSource;
};
